<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="jspmodules/init.jsp" %>

<%@page import="com.javandad.app.shared.entity.UserGroup"%>
<%
	UserGroup group = null; // the viewed group

	String groupParam = request.getParameter("group");
	if (groupParam != null)
		group = pm.getObjectById(UserGroup.class, groupParam);

	if (group == null) {
		response.sendRedirect("home.jsp?" + codesvrParam);
	}
%>

<html>
<head>
<link href="Javandad.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><%=group%> - Group - JaVandad</title>
<script type="text/javascript" language="javascript"
	src="com.javandad.app.Network/com.javandad.app.Network.nocache.js"></script>
</head>
<body style="font-family: sans-serif;">
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
	style="position: absolute; width: 0; height: 0; border: 0"></iframe>

<div
	style="position: absolute; overflow: auto; left: 0px; top: 0px; right: 0px; bottom: 0px;">
<table style="width: 100%; height: 100%;" border=0>
	<tr height="5%">
		<td style="background-color: #707dbe;">
		<table width="100%" height="100%" border=0>
			<tr>
				<td valign="top">
				<table align="left" width="100%">
					<tr>
						<td style="vertical-align: top"><a href="login.jsp"><img alt="Vandad Logo"
							src="img/logo.jpg" width="200" height="50" /></a></td>
						<td id="topPanel" style="white-space: nowrap;"></td>
						<td align="right"
							style="vertical-align: top; text-align: right; width: 100%;">

								<jsp:include page="jspmodules/headerMenu.jsp">
						<jsp:param value="<%= codesvrParam %>" name="codesvrParam"/>
						</jsp:include>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>


	<tr height="85%">



		<td width="100%" valign="top">
		<table width="100%" height="100%" border="0">
			<tr height="100%" align="left">
				<td width="80%" valign="top">
				<table width="100%" height="100%">
					<tr height="100%">
						<%
							if (view != null) {
						%>
						<td align="left"
							style="vertical-align: top; text-align: right; width: 10%;">
						<table>
							<tr>
								<td>
								<h2>History</h2>
								</td>
							</tr>
							<tr>
								<td>
									<a href="<%="home.jsp?" + viewParams%>">
										<%=view%>
									</a>
								</td>
							</tr>
						</table>


						</td>
						<%
							}
						%>

						<td valign="top">
						<h4>Group details</h4>
						<table>
							<tr>
								<td>Group URL:</td>
								<td><%=group.getGroupURL()%></td>
							</tr>
							<tr>
								<td>Creator:</td>
								<td><%=group.getCreator()%></td>
							</tr>
							<tr>
								<td>Established at:</td>
								<td><%=group.getDateOfEstablishment()%></td>
							</tr>
						</table>
						<br>
						<h4>Membership status</h4>
						<div id="memberStatusContainer"
							<%=(user != null ? "username='" + user.getUsername() + "'"
					: "")%>
							groupURL='<%=group.getGroupURL()%>'></div>
						<br>
						<h4>Members list</h4>
						<div id="membersListContainer" groupURL='<%=group.getGroupURL()%>'></div>

						</td>

					</tr>
				</table>
				</td>
				<!-- %@ include file="jspmodules/search.jsp" % -->

			</tr>


		</table>
		</td>
	</tr>
	<%@ include file="jspmodules/bottom.jsp" %>
</table>

</div>
</body>
</html>

